import request from '@/utils/request'

// 查询
export function getOrder(data) {
  return request({
    url: '/system/order/list',
    method: 'get',
    params: data
  })
}

// 新增
export function addOrder(data) {
  return request({
    url: '/system/order',
    method: 'POST',
    data: data
  })
}

// 修改
export function editOrder(data) {
  return request({
    url: '/system/order',
    method: 'PUT',
    data: data
  })
}

// 删除
export function deleteOrder(ids) {
  return request({
    url: '/system/order/' + ids,
    method: 'delete'
  })
}

// 近七天订单
export function sevenOrder() {
  return request({
    url: '/system/order/orderNum',
    method: 'get',
  })
}

// 员工订单数
export function peopleOrder() {
  return request({
    url: '/system/order/staffOrder',
    method: 'get',
  })
}
